﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Smart
{
    public class DbMatris : Tablo
    {
        public string StokKodu { get; set; }
        public string CariKodu { get; set; }
        public int Vade { get; set; }
        public decimal Oran1 { get; set; }
        public decimal Oran2 { get; set; }
        public decimal Oran3 { get; set; }
        public decimal Oran4 { get; set; }
        public decimal Oran5 { get; set; }
        public decimal Oran6 { get; set; }

        public DbMatris()
        {
            this.TabloAdi = "TBL_MATRIS";
        }

        public override IEnumerable<string> BulkImport()
        {
            yield return "İndiriliyor...";
            string[] dt = BackOffice.Get.IskontoMatris(new DateTime(1900, 1, 1));
            yield return "indirildi.";
            foreach (string item in SqlCeClient.Get.importRows(this.TabloAdi, dt))
            {
                yield return item;
            }
            yield return "Tamamlandı";
        }
    }
}
